﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using LitJson;
using NeteasyMusic;

namespace jsonTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            JsonData json = JsonMapper.ToObject("[{\"name\":\"23333\"},{\"name\":\"qwq233\"}]");
            textBox1.Text = json.ToJson();
            foreach (JsonData item in json)
            {
                textBox2.Text += item["name"].ToString();
            }
            //textBox1.Text += json["heer"].ToString();
            
        }

        private void button2_Click(object sender, EventArgs e)
        {
            foreach (var item in Music.GetSearch("Befall", "4", SearchType.Singer))
            {
                listBox1.Items.Add(item.url);
            }
            
        }
    }
}
